import request from '@/utils/request'

// 查询音乐列表
export function listSongData(query) {
  return request({
    url: '/system/songData/list',
    method: 'get',
    params: query
  })
}

// 查询音乐详细
export function getSongData(id) {
  return request({
    url: '/system/songData/' + id,
    method: 'get'
  })
}

// 新增音乐
export function addSongData(data) {
  return request({
    url: '/system/songData',
    method: 'post',
    data: data
  })
}

// 修改音乐
export function updateSongData(data) {
  return request({
    url: '/system/songData',
    method: 'put',
    data: data
  })
}

// 删除音乐
export function delSongData(id) {
  return request({
    url: '/system/songData/' + id,
    method: 'delete'
  })
}
